import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import request from './utils/request'

Vue.use(ElementUI)
Vue.config.productionTip = false

// 配置axios作为Vue的$http属性
Vue.prototype.$http = request

// 添加事件总线用于组件间通信
Vue.prototype.$bus = new Vue()

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
